package config

import "time"

type RedisEle struct {
	Addr         string        `yaml:"addr"`
	Password     string        `yaml:"password"`
	PoolSize     int           `yaml:"pool_size"`
	IdleTimeout  time.Duration `yaml:"idle_timeout"`
	MaxReConnect int           `yaml:"max_reconnect"`
	DB           int           `yaml:"db"`
	WriteTimeout time.Duration `yaml:"write_timeout"`
	ReadTimeout  time.Duration `yaml:"read_timeout"`

	MinIdleConnections int `yaml:"min_idle_connections"`
}

type Redis struct {
	Write RedisEle `yaml:"write"`
	Read  RedisEle `yaml:"read"`
}
